package com.ideal.manage.esms.repository.system;

import com.ideal.manage.esms.bean.sys.Role;
import com.ideal.manage.esms.bean.sys.User;
import com.ideal.manage.esms.repository.framework.BaseRepository;

import javax.management.Query;
import java.util.List;

public interface UserRepository extends BaseRepository<User, String> {
    User findByLoginNameAndPassword(String loginName,String password);

    List<User> findByRoleIn(List<Role> roles);

    List<User> findByChangePassword(String changePassword);
}
